package cc.aiee.demo.springboot.controller.wxpay.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import cc.aiee.core.abstracts.AbstractQuickModel;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Schema(description = "信用卡支付接口")
@EqualsAndHashCode(callSuper = false)
public class WxPayUnifiedQuery extends AbstractQuickModel {
	
	@NotBlank
	private String nonce_str;
	
	@NotBlank
	private String out_trade_no;
	
	@NotNull
	private Integer total_fee;
	
	@Override
	public <T> T model(T cls) {
		BeanUtil.copyProperties(this, cls, true);
		return cls;
	}

}
